#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include "Sphere.h"

Sphere::Sphere(int r,int g,int b,vec3 pos, float size) : object()
{
    this->r = r;
    this->g = g;
    this->b = b;
    this->pos.x = pos.x;
    this->pos.y = pos.y;
    this->pos.z = pos.z;
    this->size = size;
}

Sphere::~Sphere()
{
    //dtor
}

void    Sphere::draw()
{
    glColor3ub(r,g,b);
    GLUquadric* params;
    params = gluNewQuadric();
    gluQuadricDrawStyle(params,GLU_FILL);
    gluSphere(params,size,size,size);
    glTranslated(pos.x,pos.y,pos.z);
    glColor3ub(r,g,b);
}
